package com.education.common.exception;

import com.education.common.utils.ResultCode;

/**
 * 系统业务异常
 */
public class BusinessException extends RuntimeException {
    private ResultCode resultCode;
    public ResultCode getResultCode() {
        return resultCode;
    }

    public void setResultCode(ResultCode resultCode) {
        this.resultCode = resultCode;
    }
    public BusinessException(ResultCode resultCode) {
        this.resultCode = resultCode;
    }

    public BusinessException(String message) {
super(message);
    }
   public BusinessException(Throwable throwable){
        super(throwable);
    }
    public BusinessException(String message,Throwable throwable){
        super(message,throwable);
    }
}
